<template>
  <div>
    <div id="page">
      <!--顶部-->
      <div id="top">
        <span class="iconfont arrow_l">&#xe603;</span>
        <h2>支付界面</h2>
        <p>
          <span class="iconfont">&#xe64a;</span>
          <span class="iconfont">&#xe614;</span>
          <i class="line"></i>
        </p>
      </div>
      <div class="pay_dd">
        <p class="pay_dd1">订单号:{{ list }}</p>
        <p class="pay_dd2">
          ￥<span class="par_span">{{ order.countmoney }}</span>
        </p>
      </div>
      <div class="pay_fs">
        <p class="pay_fs1">请选择支付方式</p>
        <p class="pay_fs1">
          <i class="img"><img src="../../assets/img/zhifubao.png" alt=""></i><em>支付宝支付</em>
          
          <input type="radio" checked class="pay_input" name="pay" id="" />
        </p>
        <p class="pay_fs1">
          <i class="img"><img src="../../assets/img/weixin.png" alt=""></i><em>微信支付</em>
          <input type="radio" class="pay_input pay_input1" name="pay" id="" />
        </p>
      </div>
      <div class="pay_qr">
        <input type="submit" class="pay_qr1" @click="add()" value="确认支付" />
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters, mapActions } from "vuex";
import { orderList } from "../../utils/api";
export default {
  props: [],
  components: {},
  data() {
    return {
      users: {},
      list: {},
      order: {},
    };
  },
  computed: {
    ...mapGetters({}),
  },
  methods: {
    ...mapActions({}),
    add() {
      this.$router.push("/home");
    },
  },
  mounted() {
    this.order = sessionStorage.getItem("shoper")
      ? JSON.parse(sessionStorage.getItem("shoper"))
      : {};
    this.users = sessionStorage.getItem("user")
      ? JSON.parse(sessionStorage.getItem("user"))
      : {};
    orderList({ uid: this.users.uid }).then((res) => {
      //console.log(res,123);
      this.list = res.data.list.data[0].ordernumber;
    });
  },
};
</script>

<style scoped>
#top {
  height: 0.64rem;
  background: #ff6040;
  display: flex;
  padding: 0.28rem 0.12rem 0.28rem 0.32rem;
  color: #ffdfd8;
  align-items: center;
}
#top h2 {
  width: 1.5rem;
  margin: 0 1.23rem 0 2.53rem;
  font-size: 0.32rem;
}
#top .arrow_l {
  font-size: 0.34rem;
}
#top p {
  width: 1.74rem;
  height: 0.64rem;
  border: 1px solid #ff8a6f;
  box-sizing: border-box;
  border-radius: 0.54rem;
  display: flex;
  align-items: center;
  position: relative;
}
#top p span {
  width: 50%;
  height: 100%;
  text-align: center;
  line-height: 0.64rem;
}
#top p .line {
  width: 1px;
  height: 0.37rem;
  background: #ff896e;
  position: absolute;
  top: 0.12rem;
  left: 0.86rem;
}
.pay_dd {
  height: 2rem;
  font-size: 0.3rem;
}
.pay_dd .pay_dd1 {
  text-align: center;
  color: #ccc;
  margin: 0.2rem 0;
}
.pay_dd .pay_dd2 {
  color: #333;
  text-align: center;
  margin: 0.5rem 0;
}
.pay_dd .pay_dd2 .par_span {
  font-size: 0.5rem;
  font-weight: bold;
}
.pay_fs {
  height: 2.3rem;
  font-size: 0.36rem;
  color: #000;
  margin-bottom: 5rem;
}
.pay_fs .pay_fs1 {
  margin: 0.4rem;
}
.pay_fs .pay_fs1 img{
width:1rem;
height:1rem;
vertical-align: middle;
display: inline;
margin-right: 0.2rem;
}
.pay_fs .pay_fs1 .pay_input {
  width: 0.4rem;
  height: 0.4rem;
  margin: 0.2rem 0.2rem 0 0;
  float: right;
}
.pay_fs .pay_fs1 .pay_input1 {
  margin: 0.2rem 0.2rem 0 0;
}
.pay_qr {
  text-align: center;
  margin-top: 0.3rem 0;
}
.pay_qr .pay_qr1 {
  width: 6.5rem;
  height: 1rem;
  background-color: skyblue;
  border-radius: 0.5rem;
  font-size: 0.4rem;
  color: #fff;
  text-align: center;
  line-height: 1rem;
  outline: none;
  border: none;
}
</style>